package UILayer;

import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.Checkbox;
import javax.swing.JTable;

public class KundePanel extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;
	private JTextField textField_10;
	private JTable table;

	/**
	 * Create the panel.
	 */
	public KundePanel() {
		setBorder(new LineBorder(new Color(0, 0, 0)));
		setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Find kunde", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel.setBounds(10, 11, 247, 184);
		add(panel);
		
		textField = new JTextField();
		textField.setColumns(10);
		textField.setBounds(10, 48, 102, 20);
		panel.add(textField);
		
		JLabel label = new JLabel("Telefon nr.");
		label.setBounds(10, 26, 66, 14);
		panel.add(label);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(10, 153, 102, 20);
		panel.add(textField_1);
		
		JButton button = new JButton("Find");
		button.setBounds(148, 152, 89, 23);
		panel.add(button);
		
		JLabel label_1 = new JLabel("Navn");
		label_1.setBounds(10, 131, 66, 14);
		panel.add(label_1);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(10, 101, 102, 20);
		panel.add(textField_2);
		
		JLabel label_2 = new JLabel("Addresse");
		label_2.setBounds(10, 79, 66, 14);
		panel.add(label_2);
		
		JPanel panel_1 = new JPanel();
		panel_1.setLayout(null);
		panel_1.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Opret kunde", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(10, 206, 247, 86);
		add(panel_1);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(10, 47, 105, 20);
		panel_1.add(textField_3);
		
		JLabel label_3 = new JLabel("Telefon nr.");
		label_3.setBounds(10, 25, 49, 14);
		panel_1.add(label_3);
		
		JButton button_1 = new JButton("Tilf\u00F8j");
		button_1.setBounds(148, 46, 89, 23);
		panel_1.add(button_1);
		
		JPanel panel_2 = new JPanel();
		panel_2.setLayout(null);
		panel_2.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Kunde oplysninger", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_2.setBounds(10, 303, 637, 177);
		add(panel_2);
		
		JLabel label_4 = new JLabel("Navn");
		label_4.setBounds(55, 27, 49, 14);
		panel_2.add(label_4);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(128, 21, 174, 20);
		panel_2.add(textField_4);
		
		textField_5 = new JTextField();
		textField_5.setColumns(10);
		textField_5.setBounds(128, 49, 174, 20);
		panel_2.add(textField_5);
		
		JLabel label_5 = new JLabel("Addresse");
		label_5.setBounds(55, 55, 86, 14);
		panel_2.add(label_5);
		
		JLabel label_6 = new JLabel("Post nr og by");
		label_6.setBounds(55, 83, 70, 14);
		panel_2.add(label_6);
		
		textField_6 = new JTextField();
		textField_6.setColumns(10);
		textField_6.setBounds(128, 80, 42, 20);
		panel_2.add(textField_6);
		
		JLabel label_7 = new JLabel("Tlf. nr.");
		label_7.setBounds(55, 114, 86, 14);
		panel_2.add(label_7);
		
		textField_7 = new JTextField();
		textField_7.setColumns(10);
		textField_7.setBounds(128, 111, 174, 20);
		panel_2.add(textField_7);
		
		JLabel label_8 = new JLabel("Email");
		label_8.setBounds(55, 145, 49, 14);
		panel_2.add(label_8);
		
		textField_8 = new JTextField();
		textField_8.setColumns(10);
		textField_8.setBounds(128, 142, 174, 20);
		panel_2.add(textField_8);
		
		textField_9 = new JTextField();
		textField_9.setColumns(10);
		textField_9.setBounds(180, 80, 122, 20);
		panel_2.add(textField_9);
		
		Checkbox checkbox = new Checkbox("Privat");
		checkbox.setBounds(392, 77, 95, 22);
		panel_2.add(checkbox);
		
		Checkbox checkbox_1 = new Checkbox("Erhverv");
		checkbox_1.setBounds(392, 49, 95, 22);
		panel_2.add(checkbox_1);
		
		JButton button_2 = new JButton("Gem");
		button_2.setBounds(519, 139, 89, 23);
		panel_2.add(button_2);
		
		textField_10 = new JTextField();
		textField_10.setColumns(10);
		textField_10.setBounds(392, 24, 116, 20);
		panel_2.add(textField_10);
		
		JLabel label_9 = new JLabel("Rabat");
		label_9.setBounds(347, 27, 35, 14);
		panel_2.add(label_9);
		
		JLabel label_10 = new JLabel("%");
		label_10.setBounds(519, 27, 49, 14);
		panel_2.add(label_10);
		
		JPanel panel_3 = new JPanel();
		panel_3.setLayout(null);
		panel_3.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Kunderegister", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_3.setBounds(267, 11, 380, 281);
		add(panel_3);
		
		table = new JTable();
		table.setColumnSelectionAllowed(true);
		table.setCellSelectionEnabled(true);
		table.setBounds(10, 44, 360, 226);
		panel_3.add(table);

	}

}
